﻿using DoNet.Core.Models;
using SqlSugar;
using System.ComponentModel;

namespace DoNet.Bpmn.Models
{
    /// <summary>
    /// 
    /// </summary>
    [SugarTable("Bpmn_NodePersonnelEmplConfig", "")]
    [Serializable]
    public class BpmnNodePersonnelEmplConfig : TenantEntity, ICreationAudited, IModificationAudited, IDeleteAudited
    {
        /*
        `id`                    int(11)    NOT NULL AUTO_INCREMENT COMMENT 'id',
        `bpmn_node_personne_id` int(11)    NOT NULL COMMENT 'personnel id',
        `empl_id`               varchar(50) NOT NULL COMMENT 'approver id',
        `empl_name`             varchar(50) null comment 'approver name',
        `remark`                varchar(100) DEFAULT NULL COMMENT 'remark',
        `is_del`                tinyint(255) DEFAULT NULL COMMENT '0:no,1:yes',
        `create_user`           varchar(30)  DEFAULT NULL COMMENT 'as its name says',
        `create_time`           timestamp     NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'as its name says',
        `update_user`           varchar(30)  DEFAULT NULL COMMENT 'as its name says',
        `update_time`           timestamp     DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT 'as its name says',
        */
        /// <summary>
        /// 获取或设置 编号
        /// </summary>
        [DisplayName("编号")]
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "编号,主键")]
        public override long Id { get; set; }

        /// <summary>
        /// BPMN node personnel ID.
        /// </summary>
        public long BpmnNodePersonneId { get; set; }

        /// <summary>
        /// Employee ID.
        /// </summary>
        public string EmplId { get; set; } = string.Empty;

        /// <summary>
        /// Employee name.
        /// </summary>
        public string EmplName { get; set; } = string.Empty;

        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(ColumnDescription = "备注")]
        public virtual string Description { get; set; } = string.Empty;

        /// <summary>
        /// 创建日期
        /// </summary>
        [SugarColumn(ColumnDescription = "创建日期")]
        public virtual DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 创建用户主键
        /// </summary>
        [SugarColumn(ColumnDescription = "创建用户主键")]
        public virtual long? CreatorUserId { get; set; }

        /// <summary>
        /// 最后修改时间
        /// </summary>
        [SugarColumn(ColumnDescription = "最后修改时间")]
        public virtual DateTime? LastModifyTime { get; set; }

        /// <summary>
        /// 最后修改用户
        /// </summary>
        [SugarColumn(ColumnDescription = "最后修改用户")]
        public virtual long? LastModifyUserId { get; set; }

        /// <summary>
        /// 删除标志
        /// </summary>
        [SugarColumn(ColumnDescription = "删除标志")]
        public virtual bool DeleteMark { get; set; }

        /// <summary>
        /// 删除时间
        /// </summary>
        [SugarColumn(ColumnDescription = "删除时间")]
        public virtual DateTime? DeleteTime { get; set; }

        /// <summary>
        /// 删除用户
        /// </summary>
        [SugarColumn(ColumnDescription = "删除用户")]
        public virtual long? DeleteUserId { get; set; }
    }
}
